package com.life.utils;

import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

import com.life.constants.Constants;
import com.life.view.WidgetRegistry;

public class DialogUtil {

	protected static WidgetRegistry widgetRegistry = WidgetRegistry.getInstance();
	
	
	public static void showMessageDialog(String message)
	{
		JFrame parentComponent = (JFrame)widgetRegistry.get(Constants.LIFE_APPLICATION_FRAME);
		JOptionPane.showMessageDialog(parentComponent, message);
		parentComponent.repaint();
	}
}
